package com.fafian.publish;

import java.math.BigInteger;

class ResponseMessage {

	private Object content1;
	private BigInteger uniqueId;
	private Exception exception;
	
	ResponseMessage(Object obj, BigInteger uniqueId){
		this.content1 = obj;
		this.uniqueId = uniqueId;
	}
	
	Object getContent(){
		return content1;
	}
	
	BigInteger getUniqueId(){
		return uniqueId;
	}
	
	Exception getException(){
		return exception;
	}
	
	void setException(Exception e){
		this.exception = e;
	}
	
	boolean hasException(){
		return (exception != null);
	}
	
}
